<?php
	class Index_Model extends MySQL{
		function __construct() {
			MySQL::connect();
		}
		function getShopName($loginid) {
			$sql = "select Shops.fullname from LoginUser JOIN Shops ON LoginUser.shopname = Shops.fullname WHERE LoginUser.loginid = '$loginid'";
			$row = MySQL::query_row($sql);
			return $row[0];
		}
	}
?>